<extend name="Public:template" />
<block name="page_header">
	<ul class="header-sub">
		<li ><h3>店员登录</h3></li>
	</ul>
</block>
<block name="page_body">
<form action="{:U('Index/doLogin')}" method="post" id="form_edit" name="form_edit" role="form">
	<input type="hidden" name="lastUrl" value="{$lastUrl}">
	<div class="input-group mt5">
		<span class="input-group-addon alert-info">店员帐号</span>
		<input type="text" class="form-control"  id="user_name" name="user_name" placeholder="请输入帐号">
	</div>
	<div class="input-group  mt5">
		<span class="input-group-addon alert-info">店员密码</span>
		<input type="password" class="form-control" id="user_pass" name="user_pass" placeholder="请输入密码">
	</div>
	<div class="checkbox mt15">
		<label>
			<input type="checkbox" id="keep_login" name="keep_login" value="1" >记住密码
		</label>
	</div>
	<button type="button" id="doLoginBtn" onclick="doLogin()" class="btn btn-info btn-lg btn-block active mt5">立即登录</button>
</form>
</block>
<block name="script_footer">
<script type="text/javascript">
function doLogin(){
	if($("#user_name").val()==''){
		alert('请输入帐号');
		return;
	}
	if($("#user_pass").val()==''){
		alert('请输入密码');
		return;
	}
	document.forms['form_edit'].submit();
	//$('#form_edit').submit();();
}
</script>
</block>